package igor.lakienko.ru.generation.quotes.mapper;

import igor.lakienko.ru.generation.quotes.entity.CurrencyEntity;
import igor.lakienko.ru.generation.quotes.dto.CurrencyDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(config = DefaultMapperConfig.class)
public interface CurrencyMapper {

    @Mapping(target = "sentAt", ignore = true)
    CurrencyDto currencyEntityToDto(CurrencyEntity currencyEntity);

    List<CurrencyDto> currenciesEntityToDto(List<CurrencyEntity> currencyEntity);

}
